<link rel="stylesheet" type="text/css" href="js/fancyupload/style.css"/>
<script type="text/javascript" src="js/mootools.js"></script>
<script type="text/javascript" src="js/mootools.lang.js"></script>
<script type="text/javascript" src="js/fancyupload/Swiff.Uploader.js"></script>
<script type="text/javascript" src="js/fancyupload/Fx.ProgressBar.js"></script>
<script type="text/javascript" src="js/fancyupload/FancyUpload2.js"></script>
<script type="text/javascript" src="js/fancyupload/lang.ch.js"></script>
<script type="text/javascript" src="template/default/cp_upload_flash.js"></script>
<div id="batchUploadAlbum">
<form action="do_swfupload.html" method="post" id="form-demo">
	<input type="hidden" id="curUid" name="curUid" value="${_SGLOBAL['supe_uid']}"/>
	<div id="demo-status" class="hide">
		<p>
			上传到：
				<select id="albumid" name="albumid" onchange="changeAlbum(this)">
					<option value="">请选择相册</option>
					<!--$for{entry:albums}-->$set{value=entry.value}
						<!--$if{ value['albumid'] == albumid}-->
							<option value="${value['albumid']}" selected>${value['albumname']}</option>
						<!--$else-->
							<option value="${value['albumid']}">${value['albumname']}</option>
						<!--$end-->
					<!--$end-->
					<option value="-1">+新建相册</option>
				</select>
			<input type="button" class="submit" value="浏览" id="demo-browse"/> |
			<input type="button" class="submit" value="全部删除" id="demo-clear"/> |
			<input type="button" class="submit" value="上传" id="demo-upload"/>
		</p>
		<div id="addAlbum" style="display:none;height:30px;">
			请输入新建的相册名：<input type="text" name="newAlbumName" id="newAlbumName"/> 
			<input type="button" class="submit" value="确定" onclick="addAlbum()"/>&nbsp;&nbsp;<input type="button" class="submit" value="取消" onclick="cancelAddAlbum()"/>
		</div>
		<div>
			<strong class="overall-title"></strong><br />
			<img src="js/fancyupload/assets/progress-bar/bar.gif" class="progress overall-progress" />
		</div>
		<div>
			<strong class="current-title"></strong><br />
			<img src="js/fancyupload/assets/progress-bar/bar.gif" class="progress current-progress" />
		</div>
		<div class="current-text"></div>
		<ul id="demo-list"></ul>
	</div>
</form>
</div>
<form name="picDescriptionForm" method="post" action="save_photodesc.html">
	<input type="hidden" name="uploadAlbumid" id="uploadAlbumid"/>
	<div id="albumPreview" class="photo_list" style="display: none">
		<div class="showmessage" id="message" style="display: none"></div>
		<div id="albumList"></div>
		<div class="btn">
			<input type="button" class="submit" value="确 定" onclick="document.picDescriptionForm.submit();this.disabled = true;"/>
			<a href="javascript:cancelInputPicDescription('${_SGLOBAL['supe_uid']}')">取消</a>
		</div>
	</div>
</form>
<style>
  #albumPreview{
     margin-top: 20px;
  }
  .fieldset{
  	text-align:left;
  	padding: 10px;
  	width: 160px;
  	margin: 10px;
  	float: left;
  }
  .fieldset.dd{
  	float:left;
  	margin: 0;
  	padding : 0 0 10px;
  }
  .fieldset.dt{
    width:48px;
    clear:both;
    float:left;
    text-align:right;
    padding:2px 0 0;
  }
  #albumPreview .btn{
  	border-top: 1px dotted #999999;clear: both;padding-top: 10px;text-align: center;
  }
  .showmessage{
  	margin : 0;
  	width: auto;
  	padding: 10px;
  }
</style>